﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silverlight_Client.Commands_Utils;

namespace Silverlight_Client.ViewModels
{
    public class ErrorVM : IViewModelBase
    {
        #region Fields
        
        private ICommand _cancelcmd, _okcmd;
        private String _cancelcontent, _okcontent, _title;
        
        #endregion

        #region Properties

        public String CancelContent
        {
            get { return _cancelcontent; }
            set
            {
                if (_cancelcontent == value) return;
                _cancelcontent = value;
                RaisePropertyChanged("CancelContent");
            }
        }
        public String OkContent
        {
            get { return _okcontent; }
            set
            {
                if (_okcontent == value) return;
                _okcontent = value;
                RaisePropertyChanged("OkContent");
            }
        }
        public String Title
        {
            get { return _title; }
            set
            {
                if (_title == value) return;
                _title = value;
                RaisePropertyChanged("Title");
            }
        }
        
        #endregion

        #region Commands

        public ICommand CancelCmd
        {
            get { return _cancelcmd; }
        }
        public ICommand OkCmd
        {
            get { return _okcmd; }
        }

        #endregion

        #region Commands Functions
        
        void CancelFunc()
        {
        }
        void OkFunc()
        {
        }

        #endregion
        
        #region Ctors
        
        public ErrorVM()
        {
            _cancelcmd = new RelayCommand(CancelFunc) { IsEnabled = true };
            _okcmd = new RelayCommand(OkFunc) { IsEnabled = true };
        }
        
        #endregion
    }
}
